/*
 * Copyright 2010 Donny A. Wijaya
 *  
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 * 
 * http://www.apache.org/licenses/LICENSE-2.0 
 * 
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
 * See the License for the specific language governing permissions and 
 * limitations under the License. 
 */
package com.uberium.lazy.project;

import com.uberium.lazy.generate.GenerateMojo;

/**
 * The ProjectMojo class. Goal which generates Java web project.
 *
 * @goal project
 * 
 * @phase generate-sources
 * 
 * @author Donny A. Wijaya
 * @version 0.0.9
 * @since April 2010
 */
public class ProjectMojo extends GenerateMojo {
	/**
     * Name of the Project parent
     * 
     * @parameter expression="${parent}"
     */
	private String parent = "";
	
	/**
	 * Wildcard of the Project 
	 */
	private String wildcard = "WILDCARD";
	
	/**
	 * Instantiates a new ProjectMojo object.
	 */
	public ProjectMojo() {
		// TODO Auto-generated constructor stub
		super("project", 
			  new String[] {"classpath*:applicationContext.xml",
							"classpath*:projectContext.xml"});
	}
	
	/**
	 * Get parent of the project
	 * 
	 * @return module
	 */
	public String getParent() {
		return parent;
	}
	
	/**
	 * Get the wildcard
	 * 
	 * @return
	 */
	public String getWildcard() {
		return wildcard;
	}
	
	/**
	 * Set the wildcard
	 * 
	 * @param wildcard
	 */
	public void setWildcard(String wildcard) {
		this.wildcard = wildcard;
	}
}